import axios from 'axios';

export default {
    index(params: any){
        return axios.get('/user/user',{
            params:params,
        })
    },
    show(id: number){
        return axios.get(`/user/user/${id}`)
    },
    updateUser(params: any){
        return axios.put('/user/update',params);
    },
    modifyCredits(params: any){
        return axios.put('/user/modifyCredits',params);
    },
    chatHistory(params: any){
        return axios.get('/user/chatHistoryByUser',{
            params:params
        })
    }
}
